﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第114题
//BC116 小乐乐改数字
//https://www.nowcoder.com/practice/fcd30aac9c4f4028b23919a0c649824d?tpId=107&tqId=33397&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D3%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int n = 0;
    int count = 1;//统计位数
    int res = 0;
    scanf("%d", &n);

    while (n > 0)
    {
        int temp = n % 10;
        if (temp % 2 == 0)
        {
            res += 0 * count;
        }
        else if (temp % 2 == 1)
        {
            res += 1 * count;
        }
        count *= 10;
        n /= 10;
    }

    printf("%d", res);

    return 0;
}